package com.test.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author zhouxuwei
 *
 */
@Entity
@Table(name="rcc_d_buildvalvehistoricaldata")
public class BuildValveHistoricalData {
	 private Date planTime;
	 private int buildValveId;
	 private Date readTime;
	 private Date equTime;
//	 private BigDecimal temperatureUp;
//	 private BigDecimal temperatureDown;
	 private Boolean controlType;
//	 private BigDecimal lockOpening;
//	 private Boolean temperatureControlType;
//	 private BigDecimal fixedTemperature;
	 private BigDecimal controlOpening;
//	 private Date controlOpeningTime;
	 private BigDecimal actualOpening;
//	 private BigDecimal targetTemperature;
//	 private Date actualOpeningTime;
//	 private BigDecimal actualTemperature;
	 private Boolean isAlarm;
	 private Boolean isFault;
	 private Boolean isFirstRecord;
//	 private BuildValve buildValve;
	private String alarmSettingIds;
	private String faultTypeIds;

	@Column(name = "alarmSettingIds")
	public String getAlarmSettingIds() {
		return alarmSettingIds;
	}

	public void setAlarmSettingIds(String alarmSettingIds) {
		this.alarmSettingIds = alarmSettingIds;
	}

	@Column(name = "faultTypeIds")
	public String getFaultTypeIds() {
		return faultTypeIds;
	}

	public void setFaultTypeIds(String faultTypeIds) {
		this.faultTypeIds = faultTypeIds;
	}
	 @Column(name = "planTime")
	public Date getPlanTime() {
		return planTime;
	}
	public void setPlanTime(Date planTime) {
		this.planTime = planTime;
	}
	
	@Id
    @Column(name = "buildValveId", unique = true, nullable = false)
	public int getBuildValveId() {
		return buildValveId;
	}
	public void setBuildValveId(int buildValveId) {
		this.buildValveId = buildValveId;
	}
	@Column(name = "readTime")
	public Date getReadTime() {
		return readTime;
	}
	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
	@Column(name = "equTime")
	public Date getEquTime() {
		return equTime;
	}
	public void setEquTime(Date equTime) {
		this.equTime = equTime;
	}
//	@Column(name = "temperatureUp")
//	public BigDecimal getTemperatureUp() {
//		return temperatureUp;
//	}
//	public void setTemperatureUp(BigDecimal temperatureUp) {
//		this.temperatureUp = temperatureUp;
//	}
//	@Column(name = "temperatureDown")
//	public BigDecimal getTemperatureDown() {
//		return temperatureDown;
//	}
//	public void setTemperatureDown(BigDecimal temperatureDown) {
//		this.temperatureDown = temperatureDown;
//	}
	@Column(name = "controlType")
	public Boolean getControlType() {
		return controlType;
	}
	public void setControlType(Boolean controlType) {
		this.controlType = controlType;
	}
//	@Column(name = "lockOpening")
//	public BigDecimal getLockOpening() {
//		return lockOpening;
//	}
//	public void setLockOpening(BigDecimal lockOpening) {
//		this.lockOpening = lockOpening;
//	}
//	@Column(name = "temperatureControlType")
//	public Boolean getTemperatureControlType() {
//		return temperatureControlType;
//	}
//	public void setTemperatureControlType(Boolean temperatureControlType) {
//		this.temperatureControlType = temperatureControlType;
//	}
//	@Column(name = "fixedTemperature")
//	public BigDecimal getFixedTemperature() {
//		return fixedTemperature;
//	}
//	public void setFixedTemperature(BigDecimal fixedTemperature) {
//		this.fixedTemperature = fixedTemperature;
//	}
	@Column(name = "controlOpening")
	public BigDecimal getControlOpening() {
		return controlOpening;
	}
	public void setControlOpening(BigDecimal controlOpening) {
		this.controlOpening = controlOpening;
	}
//	@Column(name = "controlOpeningTime")
//	public Date getControlOpeningTime() {
//		return controlOpeningTime;
//	}
//	public void setControlOpeningTime(Date controlOpeningTime) {
//		this.controlOpeningTime = controlOpeningTime;
//	}
	@Column(name = "actualOpening")
	public BigDecimal getActualOpening() {
		return actualOpening;
	}
	public void setActualOpening(BigDecimal actualOpening) {
		this.actualOpening = actualOpening;
	}
//	@Column(name = "targetTemperature")
//	public BigDecimal getTargetTemperature() {
//		return targetTemperature;
//	}
//	public void setTargetTemperature(BigDecimal targetTemperature) {
//		this.targetTemperature = targetTemperature;
//	}
//	@Column(name = "actualOpeningTime")
//	public Date getActualOpeningTime() {
//		return actualOpeningTime;
//	}
//	public void setActualOpeningTime(Date actualOpeningTime) {
//		this.actualOpeningTime = actualOpeningTime;
//	}
//	@Column(name = "actualTemperature")
//	public BigDecimal getActualTemperature() {
//		return actualTemperature;
//	}
//	public void setActualTemperature(BigDecimal actualTemperature) {
//		this.actualTemperature = actualTemperature;
//	}
	@Column(name = "isAlarm")
	public Boolean getIsAlarm() {
		return isAlarm;
	}
	public void setIsAlarm(Boolean isAlarm) {
		this.isAlarm = isAlarm;
	}
	@Column(name = "isFault")
	public Boolean getIsFault() {
		return isFault;
	}
	public void setIsFault(Boolean isFault) {
		this.isFault = isFault;
	}
	@Column(name = "isFirstRecord")
	public Boolean getIsFirstRecord() {
		return isFirstRecord;
	}
	public void setIsFirstRecord(Boolean isFirstRecord) {
		this.isFirstRecord = isFirstRecord;
	}
//	 @ManyToOne(fetch = FetchType.LAZY)
//	 @JoinColumn(name = "buildValveId",insertable=false,updatable=false)
//	public BuildValve getBuildValve() {
//		return buildValve;
//	}
//	public void setBuildValve(BuildValve buildValve) {
//		this.buildValve = buildValve;
//	}
	 
	 
	 
	 
	 
}
